﻿// ----------------------------------------------------------------------------------
// <copyright file="SignController.cs" company="Christopher Hines">
// Copyright (c) 2012 All Right Reserved
// </copyright>
// <author>Chris Hines</author>
// <date>2012-03-23</date>
// <summary>
//     The Sign Controller
// </summary>
// ----------------------------------------------------------------------------------

namespace Copperfield.Demo.Web.Controllers
{
    using System.Web.Mvc;

    using Copperfield.Demo.Common;

    /// <summary>
    /// The Sign Controller
    /// </summary>
    public partial class SignController : Controller
    {
        #region Private Members

        /// <summary>
        /// Gets the street sign
        /// </summary>
        /// <value>
        /// The street sign
        /// </value>
        private readonly IStreetSign streetSign;

        #endregion

        #region Ctor

        /// <summary>
        /// Initializes a new instance of the <see cref="SignController"/> class.
        /// </summary>
        /// <param name="streetSign">
        /// The street sign.
        /// </param>
        public SignController(IStreetSign streetSign)
        {
            this.streetSign = streetSign;
        }

        #endregion

        /// <summary>
        /// Returns the Index view
        /// </summary>
        /// <returns>
        /// The Index view
        /// </returns>
        public virtual ActionResult Index()
        {
            return this.View(this.streetSign);
        }
    }
}
